package com.boot.webflux.security.example2.module.service;

import com.boot.webflux.security.example2.module.dao.SysResourceRepository;
import com.boot.webflux.security.example2.module.entity.SysResource;
import lombok.AllArgsConstructor;
import org.springframework.data.r2dbc.core.R2dbcEntityTemplate;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;

import java.util.List;

@Service
@AllArgsConstructor
public class SysResourceService {
    private final R2dbcEntityTemplate template;
    private SysResourceRepository sysResourceRepository;
    public Flux<SysResource> findAll(){
        return sysResourceRepository.findAll();
    }
}
